//
//  LeftViewController.m
//  AppManagement
//
//  Created by 珍 on 16/5/13.
//  Copyright © 2016年 abb.is.dev.eas. All rights reserved.
//

#import "LeftViewController.h"
#import "MyprofileTableViewController.h"
#import "AppPlistController.h"
#import "MessageViewController.h"
#import "SLideMenuController.h"
@interface LeftViewController ()

@end

@implementation LeftViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    MessageViewController *VC = [[MessageViewController alloc]init];
    self.messageViewController  = [[UINavigationController alloc]initWithRootViewController:VC];
    
    AppPlistController *appVC = [[AppPlistController alloc]init];
    
    self.appPlistViewControler  = [[UINavigationController alloc]initWithRootViewController:appVC];
    
    UIStoryboard *storybord = [UIStoryboard storyboardWithName:@"Myprofile" bundle:nil];
    MyprofileTableViewController *profileVC = [storybord instantiateInitialViewController];
    
    self.myProfileViewController = [[UINavigationController alloc]initWithRootViewController:profileVC];
    
    
}

- (IBAction)btnClick:(UIButton *)sender {
    switch (sender.tag) {
       
        case 1:
       {
           

           [self.slideMenuController changeMainViewController:self.messageViewController close:YES];
   
           
        }
            break;
            
        case 2:
        {
            
            
            [self.slideMenuController changeMainViewController:self.appPlistViewControler close:YES];
            
        }
            break;
            
        case 3:
        {
        
           
            [self.slideMenuController changeMainViewController:self.myProfileViewController close:YES];
            
        
        }
            break;
            
            
        default:
            break;
    }
    
   
}


@end
